home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / agrep / agrep.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  2KB  |  55 lines

  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <ctype.h>
  4. #include "re.h"
  5.  
  6. extern unsigned char *strcpy(), *strncpy(), *strcat();
  7. extern int strlen();
  8. #define CHAR    unsigned char
  9. #define MAXPAT 128
  10. #define MAXPATT 256
  11. #define MAXDELIM 8            /* Max size of a delimiter pattern */
  12. #define SHORTREG 15
  13. #define MAXREG   30
  14. #define MAXNAME  256
  15. #define Max_Pats 12    /* max num of patterns */
  16. #define Max_Keys 12    /* max num of keywords */
  17. #define Max_Psize 128  /* max size of a pattern counting all the characters */
  18. #define Max_Keyword 31 /* the max size of a keyword */
  19. #define WORD 32        /* the size of a word */
  20. #define MaxError 8     /* the max number of errors allowed */
  21. #define MaxRerror 4    /* the max number of erros for regular expression */
  22. #define MaxDelimit 16   /* the max raw length of a user defined delimiter */
  23. #define BlockSize  49152
  24. #define Max_record 49152
  25. #define SIZE 16384       /* BlockSIze in sgrep */
  26. #define MAXLINE   1024  /* maxline in sgrep */
  27. #define Maxline   1024
  28. #define RBLOCK    8192
  29. #define RMAXLINE  1024
  30. #define MaxNext   66000
  31. #define ON 1
  32. #define OFF 0
  33. #define Compl 1
  34. #define Maxresult 10000
  35. #define MaxCan 2500
  36. #define MAXSYM 256 /* ASCII */
  37. #define WORDB     241    /* -w option */
  38. #define LPARENT   242    /* ( */
  39. #define RPARENT   243    /* ) */
  40. #define LRANGE    244    /* [ */
  41. #define RRANGE    245    /* ] */
  42. #define LANGLE    246    /* < */
  43. #define RANGLE    247    /* > */
  44. #define NOTSYM    248    /* ^ */
  45. #define WILDCD    249    /* wildcard */
  46. #define ORSYM     250   /* | */
  47. #define ORPAT     251   /* , */
  48. #define ANDPAT    252   /* ; */
  49. #define STAR      253   /* closure */
  50. #define HYPHEN    237   /* - */
  51. #define NOCARE    238   /* . */
  52. #define NNLINE    239   /* special symbol for newline in begin of pattern*/
  53.                        /* matches '\n' and NNLINE */
  54.  
  55.